import { createSlice } from '@reduxjs/toolkit'

const mapFunSlice = createSlice({
  name: 'mapFun',
  initialState: {
    mapFun: '',
  },
  reducers: {
    setMapFun: (state, action) => {
      state.mapFun = action.payload
    },
  },
})

export const { setMapFun } = mapFunSlice.actions

export default mapFunSlice.reducer
